function redirectTo(url) {
    var isMobile = /Android|webOS| iPhone | iPad | iPod |BlackBerry|opera mini|opera mobile|appleWebkit.*mobile|mobile/i.test(navigator.userAgent);
    var fromApp = window.location.hash.match("fromapp");
    if(!fromApp&&isMobile) {
        window.location.replace(url);
    }
}